import request from '@/utils/request'

export function getfeedBackList(pram,pid) {
  const data = {
    page:pram.page,
    limit:pram.limit,
    keyword: pram.keyWord
  }
  return request({
    url: '/feedBackList',
    method: 'GET',
    params: data //get用params
  })
}
/**
 * 删除
 * @param pram
 */
export function deleteFeedBack(pram) {
  const data = {
    id: pram.id
  }
  return request({
    url: '/deleteFeedBack',
    method: 'GET',
    params: data //get用params
  })
}
/**
 * 报修列表
 * @param pram
 */
export function getApplyList(pram) {
  const data = {
    page:pram.page,
    limit:pram.limit,
    keyword: pram.keyWord
  }
  return request({
    url: '/applyList',
    method: 'GET',
    params: data //get用params
  })
}
/**
 * 报修处理
 * @param pram
 */
export function auditApply(data) {
  return request({
    url: '/auditApply',
    method: 'post',
    data
  })
}
/**
 * 房屋审核
 * @param pram
 */
export function auditHouse(data) {
  return request({
    url: '/auditHouse',
    method: 'post',
    data
  })
}
